Repository navigation
fix(modes): SETMODES 列表最多保留 96 个模式 - #44
Conversation
A re-created monitor did not come back when SETMODES published more than about 100 modes (98 worked, 105 and 112 failed on a real host). No limit in the driver explains this, so cap what SETMODES stages, keeping the preferred mode and the newest appended entries, and log what is dropped.
|
No actionable comments were generated in the recent review.
|
| 层 / 文件 | 摘要 |
|---|---|
超限列表截断 ZakoVDD/Control/CommandHandlers.cpp |
列表超过 96 项时,保留索引 0 的模式和末尾 95 项,丢弃中间项,并记录原数量、上限和删除数量。后续比较、暂存和发布均使用截断后的列表。 |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Possibly related PRs
- qiin2333/zako-vdd#43:该 PR 从
monitorModes快照中选择显示器时序;本次变更会影响该快照中的模式列表。
Suggested reviewers: qiin2333
Merge Risk: 
Minimal · up to b4879
-
The change is mergeable; the truncation branch is statically validated, with normal runtime validation still advisable.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
说明
SETMODES 的模式列表超过约 100 个时,重建后的显示器回不来。实机测试:98 个模式正常,105 个时显示器不再发布模式,112 个时显示器消失。驱动里找不到能解释这个现象的限制,所以在 SETMODES 暂存列表之前先封顶。
修改
验证
Summary by CodeRabbit